POV-Ray : Newsgroups : povray.general : Creating 16-bit HFs from C++ : Re: Creating 16-bit HFs from C++ Server Time
2 Aug 2024 06:16:20 EDT (-0400)
  Re: Creating 16-bit HFs from C++  
From: Sebastian H 
Date: 23 Feb 2005 12:04:57
Message: <421cb7b9$1@news.povray.org>
Christopher James Huff schrieb:
> In article <4219be88$1@news.povray.org>, "scott" <sco### [at] spamcom> 
> wrote:
> 
> 
>>I'm writing some code in C++ (on windows) to generate some 16-bit height
>>field data.  What is going to be the easiest way for me to export the
>>numbers to use in POV?  The PNG file format looks pretty complex (compared
>>to BMP which is what I'm used to).

Aha, me too, but linux is my choice.
As Christopher mentioned libpng is not that hard to use.
Just yesterday I took a look at the manpage (man libpng) and there are
several examples on how to write the image data.
I didn't try it yet, but it didn't look too complicated.
Maybe within the next week I'll have some C++ code.

> 
> PNG would be the best option. libpng is really not that hard to use, 
> just follow the examples in the documentation. You get lossless 
> compression and files that are widely supported.

Regards,
Sebastian H.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.